Skip to content

feat(agent): remove naming conventions for databases and roles#34

Merged
ivanbenko merged 4 commits into
masterfrom
agent-improvements
Apr 8, 2026
Merged

feat(agent): remove naming conventions for databases and roles#34
ivanbenko merged 4 commits into
masterfrom
agent-improvements

Conversation

@ivanbenko
Copy link
Copy Markdown
Member

Summary

  • Remove opsen_ prefix and client scoping from database and role names
  • Clients now have full control over naming — names are globally unique, first-come-first-served
  • Returns 409 Conflict when a database or role name is already taken

Test plan

  • Create database with raw name — verify PG database matches exactly
  • Create role — verify no prefix applied
  • Attempt duplicate database name from different client — verify 409
  • Attempt duplicate role name — verify 409
  • Drop database and re-create with same name — verify works

🤖 Generated with Claude Code

Database and role names are now client-controlled with no opsen_ prefix
or client scoping. Names are globally unique, first-come-first-served.
Returns 409 Conflict when a name is already taken.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Inject package version via ldflags at build time. Available via
`opsen-agent --version` on the server and in GET /v1/health response.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ivanbenko ivanbenko added canary and removed canary labels Apr 7, 2026
Replace Output<unknown> with typed response interfaces matching
the Go API: ComposeDeployResult, DatabaseCreateResult,
DatabaseRoleCreateResult, IngressUpdateResult.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ivanbenko ivanbenko added canary and removed canary labels Apr 8, 2026
Add RFC3339 timestamps to database and compose project records.
Set created_at on first creation, preserve it on updates, and
update modified_at on every write. Surfaced in status API responses.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ivanbenko ivanbenko added canary and removed canary labels Apr 8, 2026
@ivanbenko ivanbenko merged commit 23a35c4 into master Apr 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant